package com.koron.order.overhaulExperimentRel.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.order.overhaulExperimentRel.bean.po.OverhaulExperimentRelPo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * 大修工单与试验工单的关联表(OverhaulExperimentRel)表服务接口
 *
 * @author zhouj
 * @since 2022-04-21 11:20:48
 */
public interface OverhaulExperimentRelService {

    int insertOrUpdate(SessionFactory factory, OverhaulExperimentRelPo overhaulExperimentRel);

    int insertOrUpdateBatch(SessionFactory factory, List<OverhaulExperimentRelPo> overhaulExperimentRelList);

    int insert(SessionFactory factory, OverhaulExperimentRelPo overhaulExperimentRel);

    int insertBatch(SessionFactory factory, List<OverhaulExperimentRelPo> overhaulExperimentRelList);

    int update(SessionFactory factory, OverhaulExperimentRelPo overhaulExperimentRel);

    int deleteById(SessionFactory factory, Integer id);

    int deleteByOverhaulId(SessionFactory factory, OverhaulExperimentRelPo overhaulExperimentRel);

    OverhaulExperimentRelPo queryById(SessionFactory factory, Integer id);

    PageInfo queryPageList(SessionFactory factory, OverhaulExperimentRelPo overhaulExperimentRel, PageQuery pageQuery);

    List<OverhaulExperimentRelPo> queryList(SessionFactory factory, OverhaulExperimentRelPo overhaulExperimentRel);

}
